import { ITransactionRecipient } from '@bitgo/sdk-core';

export const txForExplainTransfer =
  '0x80800000000400164247d6f2b425ac5771423ae6c80c754f7172b0000000000000000000000000000000b40000ab3fcf8d6d697d01c3da3a20b06cd8b36f016755cb7637c3eb6b228980d8857c7826a8ea498e52fd73ecd8e3869881c9aba49ae598dfbf1d5af69b1c02b4f2bd03020000000000051a1ae3f911d8f1d46d7416bfbe4b593fd41eac19cb00000000000003e85468697320697320616e206578616d706c6500000000000000000000000000000000';

export const txExplainedTransfer = {
  id: '0ebb7aa84ec8023202517671d5781fa108405abcb73e76857520a8f163d4aae4',
  fee: '180',
  outputAmount: '1000',
  memo: 'This is an example',
  recipient: 'STDE7Y8HV3RX8VBM2TZVWJTS7ZA1XB0SSC3NEVH0',
};

export const txForExplainContract =
  '80800000000400164247d6f2b425ac5771423ae6c80c754f7172b0000000000000000000000000000000b40000dba4d775d6894746f0b8ff3cbc1b0f2696890d0669ffbb8eb8df51098741115e28af448a59583e3d34e344c34879c5c7a82d223833c1214d13cd9813165d8e1e030200000000021a000000000000000000000000000000000000000005706f782d3409737461636b2d737478000000040100000000000000000000000017d7840005163248e7aa6879968d241f3e5152d9f2796994d96c090a0c00000002096861736862797465730200000009736f6d652d686173680776657273696f6e020000000101';

export const txExplainedContract = {
  id: '14e44db3f77b527d7a9a0fb2d09c079a7a50c03e06e6a4508a4be417346d810d',
  fee: '180',
  contractAddress: 'ST000000000000000000002AMW42H',
  contractName: 'pox-4',
  functionName: 'stack-stx',
  functionArgs: [{ type: 1, value: '400000000' }],
};

export const unsignedTxForExplainTransfer =
  '0x80800000000400164247d6f2b425ac5771423ae6c80c754f7172b0000000000000000000000000000000b400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003020000000000051a1ae3f911d8f1d46d7416bfbe4b593fd41eac19cb00000000000003e800000000000000000000000000000000000000000000000000000000000000000000';
export const unsignedTxExplainedTransfer = {
  fee: '180',
  outputAmount: '1000',
  memo: '',
  recipient: 'STDE7Y8HV3RX8VBM2TZVWJTS7ZA1XB0SSC3NEVH0',
  sender: 'STB44HYPYAT2BB2QE513NSP81HTMYWBJP02HPGK6',
};

export const txForExplainFungibleTokenTransfer =
  '808000000004012fe507c09dbb23c3b7e5d166c81fc4b87692510b000000000000000000000000000000b4000000030201e4c98d7687eab5f11d03febc96951301eede336088b06c5a676cc6093f70e16b3f3533ccd8e6f92390a17dcc917f4e828657f17605574a5fcbb3da59f25483dc02019095c2f5217e0f168f27b605b47e9eac2da3c5ea309c42a2677addfb67c1fd471ef20187ce6b85b5b541d4b4f00d2f8ea8f7d42be84327968cb9411730b5217a00038e3c4529395611be9abf6fa3b6987e81d402385e3d605a073f42f407565a4a3d00020302000000010102152fe507c09dbb23c3b7e5d166c81fc4b87692510b1a1500a1c42f0c11bfe3893f479af18904677685be0d747369703664702d746f6b656e0d747369703664702d746f6b656e010000000000002710021a1500a1c42f0c11bfe3893f479af18904677685be0d747369703664702d746f6b656e087472616e73666572000000040100000000000000000000000000002710051a1500a1c42f0c11bfe3893f479af18904677685be0515ab50cac953ac55edc14e2b236854b1ead863fece0a020000000131';
export const txForExplainFungibleTokenTransferWithMemoId10 =
  '808000000004012fe507c09dbb23c3b7e5d166c81fc4b87692510b000000000000000000000000000000b400000003020130831ab5d8fc925e088931b2eb86efcd054612293aa8a0156dfa50f44b54b6776683d2463783a10ee358d565ac74e4004c9cd0a96674cb5726ac1fc848e6f00c0201a76e30fa14ca3528ebb3a3aa92cc2e202592747c2b7028d4a3791663c3361f6d2d6fd44617a0775f58076ad119f923b27d1ca3ef63273910e7a8f91d59b5ee0900038e3c4529395611be9abf6fa3b6987e81d402385e3d605a073f42f407565a4a3d00020302000000010102152fe507c09dbb23c3b7e5d166c81fc4b87692510b1a1500a1c42f0c11bfe3893f479af18904677685be0d747369703664702d746f6b656e0d747369703664702d746f6b656e010000000000002710021a1500a1c42f0c11bfe3893f479af18904677685be0d747369703664702d746f6b656e087472616e73666572000000040100000000000000000000000000002710051a1500a1c42f0c11bfe3893f479af18904677685be0515ab50cac953ac55edc14e2b236854b1ead863fece0a02000000023130';
export const txForExplainFungibleTokenTransferWithoutMemo =
  '808000000004012fe507c09dbb23c3b7e5d166c81fc4b87692510b000000000000000000000000000000b4000000030200d12a80f67cdac72ad116075e86846986a015a60bf541855ea17ddc79620b679b0d75e523cbc7638969addeb047e73ed11b398a894b2fd4459623afb2fc10461b02007e01f28f9ac5b9bc32f3de826f69aabcc6b357faa50d98087ff12714eb3d351e515482aff784b54ab572ce6f86c1f40c71b21fd197e846fb388718f55f17d4d300038e3c4529395611be9abf6fa3b6987e81d402385e3d605a073f42f407565a4a3d00020302000000010102152fe507c09dbb23c3b7e5d166c81fc4b87692510b1a1500a1c42f0c11bfe3893f479af18904677685be0d747369703664702d746f6b656e0d747369703664702d746f6b656e010000000000002710021a1500a1c42f0c11bfe3893f479af18904677685be0d747369703664702d746f6b656e087472616e73666572000000040100000000000000000000000000002710051a1500a1c42f0c11bfe3893f479af18904677685be0515ab50cac953ac55edc14e2b236854b1ead863fece09';
export const txForExplainFungibleTokenTransferWithMemoZero =
  '808000000004012fe507c09dbb23c3b7e5d166c81fc4b87692510b000000000000000000000000000000b4000000030200ce306873b8a41b66676f0dcf8cc933eedc15b52fb24e41495d43edecfa2e9e3e291a898724a997c223178910405939ffcd57264bdc0d08de6bfc402385a57edc02010e0fd2bae5af96bbbb49de41bf965cd47e2f9d93018189cc7e5642536c309a527c701d0e5f5ae44cd30c411323b09112f6f23f372a0c5d1d7713922c2a275a7500038e3c4529395611be9abf6fa3b6987e81d402385e3d605a073f42f407565a4a3d00020302000000010102152fe507c09dbb23c3b7e5d166c81fc4b87692510b1a1500a1c42f0c11bfe3893f479af18904677685be0d747369703664702d746f6b656e0d747369703664702d746f6b656e010000000000002710021a1500a1c42f0c11bfe3893f479af18904677685be0d747369703664702d746f6b656e087472616e73666572000000040100000000000000000000000000002710051a1500a1c42f0c11bfe3893f479af18904677685be0515ab50cac953ac55edc14e2b236854b1ead863fece0a020000000130';
export const hexWithoutMemoTransferId = '463377e1bff7fb4124108d160a4e42fe0ed57e69842b1c02fa6181ba345c49c6';
export const fungibleTokenTransferTx = {
  id: '2bf5277ac7cd57741163d85b78905c97e55f05887369e3908450e4050aa4cf01',
  fee: '180',
  contractAddress: 'STAG18E45W613FZ3H4ZMF6QHH426EXM5QTSAVWYH',
  contractName: 'tsip6dp-token',
  tokenName: 'tstx:tsip6dp',
  functionName: 'transfer',
  functionArgs: [
    {
      type: 5,
      address: {
        type: 0,
        version: 26,
        hash160: '1500a1c42f0c11bfe3893f479af18904677685be',
      },
    },
    {
      type: 5,
      address: {
        type: 0,
        version: 21,
        hash160: 'ab50cac953ac55edc14e2b236854b1ead863fece',
      },
    },
    { type: 1, value: '10000' },
    { type: 2 },
  ],
};

export const recipients: ITransactionRecipient[] = [
  {
    address: 'SN2NN1JP9AEP5BVE19RNJ6T2MP7NDGRZYST1VDF3M',
    amount: '10000',
    tokenName: 'tstx:tsip6dp',
  },
];

export const HOT_WALLET_ROOT_ADDRESS = 'SN14RAZNMPVEMZVG8RFP09RYGXM2EYSYK4JRAXSSE';
export const COLD_WALLET_ROOT_ADDRESS = 'SN2FJY6QZDYG0CBGZFYK0JR9KWXFMF9Z8YWE0F3ZQ';
export const DESTINATION_ADDRESS_WRW = 'STAG18E45W613FZ3H4ZMF6QHH426EXM5QTSAVWYH';
export const STX_TOKEN_ASSET_ID = 'STAG18E45W613FZ3H4ZMF6QHH426EXM5QTSAVWYH.tsip6dp-token::tsip6dp-token';
export const HOT_WALLET_KEY_CARD_INFO = {
  BACKUP_KEY:
    '{"iv":"Gexp5WkBVQTcAHZVXZ4OuQ==","v":1,"iter":10000,"ks":256,"ts":64,"mode":"ccm","adata":"","cipher":"aes","salt":"rBbnxIpOaEk=","ct":"YgCxplDF2z8ldwKyUAUXOZUwyfju6PO1hkbJFZVCMax2T9s5ep0phr8LP1EgfetnKo+5y6tTTZznG6/LdsCjoxxt1o2OK/91BxnA0nq1K27AEw61EP+yT6KGgMVayNTWRL8PQoQ0HR8q5c3O/0vsNMkWjfB/3K0="}',
  USER_KEY:
    '{"iv":"EfRq+CjugCfQ5ednJBkFfQ==","v":1,"iter":10000,"ks":256,"ts":64,"mode":"ccm","adata":"","cipher":"aes","salt":"YVeumX6jdcQ=","ct":"gBZBNbadSSnej+ty7mtyo68DThL2H83Bx1v/kmvECSSjAlwMvAPle8wcZWCZq7rxLcd1XzMC9mVTIbOLWechinVQYddKuxYE/jRaCacxpnhx2NGLdR22une00z1n4XJrRN5z/nTlEdvQ/jddLyttMHI0fwaVyyU="}',
  BITGO_PUB_KEY:
    'xpub661MyMwAqRbcGeFRie579ey3NRwkdJ2zhEhCK3zhMMXYU3daWoMFFLQrVYmB5EqxPtaSCnEK9YYpb7FKoqkojD3BNtdmtFTYCwb7KywHpKF',
  WALLET_PASSPHRASE: '#Bondiola1234',
};

export const COLD_WALLET_PUBLIC_KEY_INFO = {
  BACKUP_KEY:
    'xpub661MyMwAqRbcF1tK7pLycH5q4y3WWtVXzeGgbP3qX8BfduNePy4p5pmmB8ktKNFTTCyQzMRau2X77H4ni8vLJLWiei587QkvS5hiqSMYdrQ',
  USER_KEY:
    'xpub661MyMwAqRbcFnPihAtr8pUfoffisLqjFdKLmqVZhu4RZZnJs3QevrPat1dVSmRbCzAUDwu2vZgvYQgLuEJpNWZaSBcJnKqLYSAc9yrS9ob',
  BITGO_PUB_KEY:
    'xpub661MyMwAqRbcGuY6ENZ6ufQRAogec31YqschxvELnAZTvhdkmbuw1VzC9QodTRZELLsd7mf6LvhamFgCvaprqdSQGdbUh9hbjuAtTAyFVyS',
};

export const ACCOUNT_BALANCE_RESPONSE = {
  balance: '10000000',
  total_miner_rewards_received: '0',
  lock_tx_id: '',
  locked: '0',
  lock_height: 0,
  burnchain_lock_height: 0,
  burnchain_unlock_height: 0,
};

export const TOKEN_BALANCE_RESPONSE = {
  balance: '100000000',
};

export const ACCOUNT_NONCE_RESPONSE = {
  last_mempool_tx_nonce: null,
  last_executed_tx_nonce: 0,
  possible_next_nonce: 1,
  detected_missing_nonces: [],
  detected_mempool_nonces: [],
};

export const FEE_ESTIMATION_REQUEST = {
  transaction_payload:
    '00051a1500a1c42f0c11bfe3893f479af18904677685be000000000098968000000000000000000000000000000000000000000000000000000000000000000000',
  estimated_len: 444,
};

export const FEE_ESTIMATION_TOKEN_REQUEST = {
  transaction_payload:
    '021a1500a1c42f0c11bfe3893f479af18904677685be0d747369703664702d746f6b656e087472616e73666572000000040100000000000000000000000005f5e100051549857eb4b6dd4fee08c3ec04e3d0ed04ef67d324051a1500a1c42f0c11bfe3893f479af18904677685be09',
  estimated_len: 698,
};

export const FEE_ESTIMATION_RESPONSE = {
  estimations: [
    {
      fee_rate: 49.99401855468748,
      fee: 444,
    },
    {
      fee_rate: 49.99401855468748,
      fee: 444,
    },
    {
      fee_rate: 49.99401855468748,
      fee: 444,
    },
  ],
};

export const FEE_ESTIMATION_TOKEN_RESPONSE = {
  estimations: [
    {
      fee_rate: 49.999671459198,
      fee: 698,
    },
    {
      fee_rate: 49.999671459198,
      fee: 698,
    },
    {
      fee_rate: 49.999671459198,
      fee: 698,
    },
  ],
};

export const HOT_WALLET_RECOVERY_TX_HEX =
  '8080000000040149857eb4b6dd4fee08c3ec04e3d0ed04ef67d324000000000000000100000000000001bc00000003020185453928e12e80aed869a29e5b6b2da637a3f422544a97531ba4c517525866985b24f110ef1ae79bf66e4ae7e22091982488c875bdd89ba3c2cde5043ae21dc40201adb9248b361e7127aa5e44a57010731469d81de4c3c91e78a1f85ac10b18a4320e629293bf3ed1dc2656c22e092b673a7b240aa1b461502a7038f9a7fabd031e0002ab86cdb1f9574a85077ef963349878912b5e03bafa7b527693e7c54ef28e96c6000203020000000000051a1500a1c42f0c11bfe3893f479af18904677685be00000000009894c400000000000000000000000000000000000000000000000000000000000000000000';
export const HOT_WALLET_TOKEN_RECOVERY_TX_HEX =
  '8080000000040149857eb4b6dd4fee08c3ec04e3d0ed04ef67d324000000000000000100000000000002ba00000003020145600b27e60a50239f363f06e27b444d25b6f3b97196250cebb3bb4c1d2b52660c6f0fe50068947487d8f884978254fa378095695fc40ba89f785a78a796d45d02005a9a1b7bc7150461fd1ba40377d6d47b191eb59fd6b69dd2079d2e9b3fa615d50643b234ed84d60787bdcbbbcf777fa992613ede4c300c8fdbeedd5702f5d01e0002ab86cdb1f9574a85077ef963349878912b5e03bafa7b527693e7c54ef28e96c6000203020000000101021549857eb4b6dd4fee08c3ec04e3d0ed04ef67d3241a1500a1c42f0c11bfe3893f479af18904677685be0d747369703664702d746f6b656e0d747369703664702d746f6b656e010000000005f5e100021a1500a1c42f0c11bfe3893f479af18904677685be0d747369703664702d746f6b656e087472616e73666572000000040100000000000000000000000005f5e100051549857eb4b6dd4fee08c3ec04e3d0ed04ef67d324051a1500a1c42f0c11bfe3893f479af18904677685be09';
export const COLD_WALLET_UNSIGNED_SWEEP_TX_HEX =
  '808000000004019f2f1aff6fa0062e1f7fa6096133e75f47a7e8f7000000000000000100000000000001bc000000030002daaf341717af7ca2152fb68e82f4432959028b5dfb85e53ddfb625cd9f323ab00002ac62ceb36011c28377745da22a148d618cf3f54b212362f8b2df93e0a94fe8f700032689089cf644435cef83f40d9e20061e36f7038f8960d96eada68b47de9d40cc000203020000000000051a1500a1c42f0c11bfe3893f479af18904677685be00000000009894c400000000000000000000000000000000000000000000000000000000000000000000';
export const COLD_WALLET_TOKEN_UNSIGNED_SWEEP_TX_HEX =
  '808000000004019f2f1aff6fa0062e1f7fa6096133e75f47a7e8f7000000000000000100000000000002ba000000030002daaf341717af7ca2152fb68e82f4432959028b5dfb85e53ddfb625cd9f323ab00002ac62ceb36011c28377745da22a148d618cf3f54b212362f8b2df93e0a94fe8f700032689089cf644435cef83f40d9e20061e36f7038f8960d96eada68b47de9d40cc00020302000000010102159f2f1aff6fa0062e1f7fa6096133e75f47a7e8f71a1500a1c42f0c11bfe3893f479af18904677685be0d747369703664702d746f6b656e0d747369703664702d746f6b656e010000000005f5e100021a1500a1c42f0c11bfe3893f479af18904677685be0d747369703664702d746f6b656e087472616e73666572000000040100000000000000000000000005f5e10005159f2f1aff6fa0062e1f7fa6096133e75f47a7e8f7051a1500a1c42f0c11bfe3893f479af18904677685be09';
